<?php

namespace database;

class Database{

private $con;
	
	public function __construct(){
			
		$this->con = mysqli_connect("IP-ADRESS", "USERNAME", "PASSWORD", "DATABSE-NAME");
		// Check connection
		if (mysqli_connect_errno())
		{
			echo "Failed to connect to MySQL: " . mysqli_connect_error();
		}	
	}
	
	public function getDatabase(){
		return $this->con;	
	}
}
